package sunstar.com.xq.util

/**
 * Created by Sun.Star on 2017/6/7.
 */
class UrlManeger {
    var baseUrl = "";
    public fun addParams (key:String,value:String): UrlManeger{
        if(baseUrl.substring(baseUrl.length-1,baseUrl.length).equals("?")){
            baseUrl+="&&"+key+"="+value
        }else{
            baseUrl+="?&&"+key+"="+value
        }
        return this
    }
}